<template>
  <div class="container">
    <div class="nav">
      <div class="return">
        <router-link to="/school_i"
          ><Icon type="icon-xitongfanhui"></Icon
        ></router-link>
      </div>
      <div class="link">
        <router-link to="/city">院校城市</router-link>
        <router-link to="/type">院校类型</router-link>
      </div>
    </div>
    <div class="export">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Icon from "@/components/Icon.vue";

export default {
  name: "filterComponent",
  components: { Icon },
  data() {
    return {
      mediaWidth: "",
    };
  },
  mounted() {
    this.setHeight();
  },
  methods: {
    setHeight() {
      let cliH = document.documentElement.clientHeight;
      let conH = document.querySelector(".container");
      conH.style.height = cliH - 55 + "px";
    },
  },
};
</script>

<style lang="less" scoped>
// 最外层大容器
.container {
  height: 100%;
  background-color: white;
}
// 导航栏
.nav {
  margin: 10px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  .return {
    width: 40px;
    height: 30px;
    line-height: 30px;
    font-weight: 700;
    text-align: center;
  }
  .link {
    width: 315px;
    height: 30px;
    line-height: 30px;
    display: flex;
    align-items: center;
    align-items: center;
    justify-content: center;
    a {
      width: 100px;
      height: 30px;
      line-height: 30px;
      text-align: center;
      margin-left: 15px;
      margin-right: 10px;
      font-weight: 500;
      color: gray;
      letter-spacing: 2px;
    }
    .router-link-active {
      color: black;
      font-weight: 700;
      border-bottom: 2px solid black;
    }
  }
}
// 路由出口
.export {
  height: 562px;
}
</style>